package com.atguigu.gmall.search;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//我们配置了mybatis的依赖，它会自动启动jdbc连接数据库，而我们没有配置数据库连接信息，所以报错，现在我们派去这个数据库链接的启动配置类，就不报错了
@EnableDiscoveryClient
@EnableFeignClients//(basePackages="feign客户端所在的包名")有的公司会把所有的远程连接的聚集成一个模块，包括连接各个微服务的feignClient,我们扫描该模块的feignClient所在的包，也可以实现远程连接
public class GmallSearchApplication {

    public static void main(String[] args) {
        SpringApplication.run(GmallSearchApplication.class,args);
    }
}
